﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Linq;

namespace WordSpider
{
    /// <summary>
    /// 书籍-单词关系实体
    /// </summary>
    public class BookWordRelation
    {
        public int BookId { get; set; }
        public string English { get; set; }

        /// <summary>
        /// 转换成XElement
        /// </summary>
        /// <returns></returns>
        public XElement ToXElement()
        {
            //单词含义
            var bookWord =
                //new XElement("R",
                             new XElement("E", English);
                             //new XElement("B", BookId)
                             //);ggb
            return bookWord;
        }
    }
}
